number = [20, 23, 52, 16, 27, 39, 2, 100, 79, 89, 75, 60]
for i in range(0, len(number)):
    for j in range(0, len(number) - i - 1):
        if (number[j] > number[j + 1]):
            temp = number[j]
            number[j] = number[j + 1]
            number[j + 1] = temp
    for i in number:
        print("{} ".format(i), end="")
    print("")
